<?php
  // http://www.haus-farbe.de/ralfarben.html
  $sql = "SELECT colors_id, colors_rgb, colors_name FROM ".TABLE_ITDOT_COLORS." WHERE colors_kind = 'RAL' ORDER BY colors_id";
 	$colors = $db->db_query($sql, true);
  $content = ";\nvar RAL_COLOR = {";

  while(!$colors->EOF) {
    $content .= "'".$colors->fields['colors_rgb']."':['".$colors->fields['colors_id']."', '".$colors->fields['colors_name']."'], ";
		$colors->MoveNext();
  }
  
  $content = substr($content, 0, strlen($content)-2) . "};\n";